FROM ubuntu:latest
LABEL author="kaxia"
RUN apt-get update && apt-get full-upgrade -y
COPY --chown=root:root target/release/http_file_server /root/http_file_server
ENV SERVER_ADDR=0.0.0.0
ENV SERVER_PORT=8080
ENV SERVER_ROOT=/data
EXPOSE 8080
WORKDIR /data
USER root:root
VOLUME ["/data"]
CMD [ "/root/http_file_server" ]